bool canJump(int *nums, int numsSize)
{
    if(!numsSize) {
        return 1;
    }
    bool can = false;
    int t = 0;
    for(int i = numsSize - 1; i >= 0; i--, t++) {
        if(t <= *(nums + i)) {
            t = 0;
        }
    }
    return t == 1;
}